﻿using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;

namespace MyFloridaHouse.libSvCommonUtilities.Converters
{
    public class ConvertBoolToLockedBrush : IValueConverter
    {
        public object Convert(
            object value,
            Type targetType,
            object parameter,
            CultureInfo culture)
        {
            bool isLocked = (bool)value;
            if (isLocked)
                return new SolidColorBrush(Colors.Black);
            else
                return new SolidColorBrush(Colors.Transparent);


        }

        public object ConvertBack(
            object value,
            Type targetType,
            object parameter,
            CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
